<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>评价</title>
<%@ include file="/page/wx/include.jsp"%>
<script type="text/javascript" src="<%=basePath%>/statics/plugins/layer/layer.js"></script>
<script type="text/javascript">
	//系统域名 
	var rootPath = '<%=basePath%>';
	// 系统上传文件展示域名
	var imgRootURL = '<%=imgRootURL%> '; 
</script>
<style>
    .txt_red{
    	color:#ff0000;
    }
</style>
</head>
<body style="background: #f5f5f5">
<input type="hidden" id="appId" value="${appId }"/>
<input type="hidden" id="timestamp" value="${timestamp }"/>
<input type="hidden" id="nonceStr" value="${nonceStr }"/>
<input type="hidden" id="signature" value="${signature }"/>
<input type="hidden" id="backUrl" value="${backUrl }"/>
	<div class="reg_tips" style="display:none">
		<p>评价成功！</p>
	</div>
	<input type="hidden" id="orderCode" value="${order.orderCode }"/>
	<c:forEach items="${orderDetailList }" var="orderDetail" varStatus="status">
	<div name="comment_div" class="pj_wrap">
		<input type="hidden" name="productCode" value="${orderDetail.productCode }"/>
		<input type="hidden" name="productName" value="${orderDetail.productName }"/>
		<input type="hidden" name="imagePath" value="${orderDetail.imagePath }"/>
		<div class="pj_info1">
			<div class="pj_info1_con">
				<div class="pic">
					<img src="${imgRootURL }${orderDetail.imagePath }?x-oss-process=image/resize,h_100/format,png" />
				</div>
				<div class="item-info">
					<p>商品满意度</p>
					<div class="default-demo" name="default-demo"></div>
				</div>
			</div>
		</div>
		<div class="pj_info2">
			<div class="textarea1">
				<div class="textarea1_con">
					<textarea name="content" placeholder="写下你的购买体会和使用感受，说说它的优点和美中不足之处吧"></textarea><b><em class="txtLen" name="txtLen">0</em>/100</b>
				</div>
			</div>
			<div class="upload_part2">
				<ul name="ul_${orderDetail.id }">
				</ul>
				<ul detail_id="${orderDetail.id }">
					<li>
						<img name="img_upload" detailId="${orderDetail.id }" src="${rootPath}/statics_wx/images/upload_pic11.png"/>
						<div style="display:none">
							<input type="file" name="upload" detailId="${orderDetail.id }" id="upload_${orderDetail.id }" accept="image/*" onchange="ajaxFileUpload(this);" />
						</div>
					</li>
				</ul>
			</div>
		</div>
	</div>
	</c:forEach>
	<div class="login_other">
    	<p>
			<input type="hidden" id="contentLen" value="true"/>
        	<input type="button" class="inputbtn1" value="发表评价" onclick="commitEvaluation();"/>
        </p>
    </div>
<jsp:include page="../wx_footer.jsp" />
<script charset="utf-8" language="javascript" type="text/javascript" src="<%=basePath%>/statics/js/jquery.1.11.3.min.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/js/jquery.raty.min.js"></script>
<script type="text/javascript" src="<%=basePath%>/statics/plugins/upload/ajaxfileupload.js"></script>
<script src="<%=basePath%>/statics_wx/js/js.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/wx/my/order_evaluation.js"></script>
</body>
</html>